Show the restart dialog after updating from within NVDA, and make sure restarting offers the user the ability to save work in progress"#20441
Open
SaschaCowley wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #20393
Also fixes the underlying issue in #20171
Summary of the issue:
The installer's restart dialog:
Description of user facing changes:
The restart dialog is now shown when updating via updateCheck, and the restart button will not force restart the machine if this could result in data loss.
Description of developer facing changes:
Additions to
winBindings.Description of development approach:
When deciding whether to show the restart dialog, check whether
--install-silentwas literally passed. This is neessary becausedoSilentInstallis called regardless of whether--installor--install-silentwas used.Use
ExitWindowsExto restart the system. Based on this example codeTesting strategy:
Built a launcher from source. called
core.triggerNVDAExit(core.NewNVDAInstance(destPath, _generate_updateParameters()))(wheredestPathwas set to the path to said launcher) from the python console. Also ran from source and called_restartWindowswith an unsaved document and several browser tabs open.Known issues with pull request:
Restart is still the secondary option, as I gather from #20171 (comment) that that is the preferred option.
Code Review Checklist: